package com.flyco.modules.sms.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.flyco.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;

/**
 * @Description: 赠品配置表
 * @Author: flyco
 * @Date:   2023-02-03
 * @Version: V1.0
 */
@Data
@TableName("sms_gift_info")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="sms_gift_info对象", description="赠品配置表")
public class SmsGiftInfo {
    
	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private Long id;

	@ApiModelProperty(value = "1- 老版本，2-V2版本")
	private Integer brandCategory;

	/**商家id*/
	@Excel(name = "商家id", width = 15)
    @ApiModelProperty(value = "商家id")
	private Long partnerId;
	/**活动名称*/
	@Excel(name = "活动名称", width = 15)
    @ApiModelProperty(value = "活动名称")
	private String name;
	/**每满多少件*/
	@Excel(name = "每满多少件", width = 15)
    @ApiModelProperty(value = "每满多少件")
	private Integer minCount;
	/**赠送多少件*/
	@Excel(name = "赠送多少件", width = 15)
    @ApiModelProperty(value = "赠送多少件")
	private Integer freeCount;
	/**单次最多赠品数量，0表示不限*/
	@Excel(name = "单次最多赠品数量，0表示不限", width = 15)
    @ApiModelProperty(value = "单次最多赠品数量，0表示不限")
	private Integer limitCount;
	/**startTime*/
	@Excel(name = "startTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "startTime")
	private Date startTime;
	/**endTime*/
	@Excel(name = "endTime", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "endTime")
	private Date endTime;
	/**0-未开始 1-已开始*/
	@Excel(name = "0-未开始 1-已开始", width = 15)
    @ApiModelProperty(value = "0-未开始 1-已开始")
	@Dict(dicCode = "status_code")
	private Integer status;
	/**使用类型：0->全场通用；1->指定分类；2->指定商品*/
	@Excel(name = "使用类型：0->全场通用；1->指定分类；2->指定商品", width = 15)
    @ApiModelProperty(value = "使用类型：0->全场通用；1->指定分类；2->指定商品")
	@Dict(dicCode = "useType")
	private Integer useType;

	private String note;

	/**指定经销商标识*/
	@Excel(name = "指定经销商标识", width = 15)
    @ApiModelProperty(value = "指定经销商标识")
	private Integer storeFlag;
	/**删除标志*/
	@Excel(name = "删除标志", width = 15)
    @ApiModelProperty(value = "删除标志")
	private Integer cancelFlag;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;

	/**
	 * 经销商类型：0->全场通用；1->指定分组；2->指定经销商
	 */
	@ApiModelProperty(value = "经销商类型")
	private Integer storeType;
}
